import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';

import './actions/resetFontSize';

import Main from './components/Main';
import Login from './components/login/Login';
import MyFruits from "./components/myFruit/myFruits";
import MyFruitDetail from  "./components/myFruit/myFruitDetail";
import publishFruit from  "./components/myFruit/publishFruit";
import selectFruit from  "./components/common/selectFruit";
// import picLoad from './components/picLoad/picLoad';
import Register from './components/user/Register';
import AppFQI from './components/qt/AppFQI';
import SelectFruit from './components/qt/SelectFruit';
import SelectQTWay from './components/qt/SelectQTWay';
import PlaceQT from './components/qt/PlaceQT';
import SendQT from './components/qt/SendQT';
import MessageCenter from './components/user/MessageCenter';
import PPlanList from './components/purchasePlan/PPlanList';
import PPlanDetail from './components/purchasePlan/PPlanDetail';
import Offer from './components/purchasePlan/Offer';
import QualityStandard from './components/qualityStandard/QualityStandard';
import JoinTeam from './components/joinTeam/JoinTeam';
import SystemSet from './components/systemSet/SystemSet';
import QuoteList from './components/qoute/QuoteList';
import QuoteDetail from './components/qoute/QuoteDetail';
import Account from './components/account/Account';
import ChangeInfo from './components/account/ChangeInfo';

import Order from './components/order/Order';
import CgOrderDetail from './components/order/CgOrderDetail';
import DfhOrderDetail from './components/order/DfhOrderDetail';
import DhOrderDetail from './components/order/DhOrderDetail';
import Fh from './components/order/Fh';
import Dhyy from './components/order/Dhyy';

import FruitSelectionPage from  "./components/common/FruitSelectionPage";
import CitySelectionPage from  "./components/common/CitySelectionPage";

import {Router, Route, hashHistory} from 'react-router';

const router = (
  <Router history={hashHistory}>
    <Route path="/" component={Main}/>
    <Route path="login" component={Login}/>
    <Route path="MyFruits" component={MyFruits}/>
    <Route path="MyFruitDetail" component={MyFruitDetail}/>
    <Route path="publishFruit" component={publishFruit}/>
    <Route path="selectFruit" component={selectFruit}/>
    <Route path="register" component={Register}/>
    <Route path="appFQI" component={AppFQI}/>
    <Route path="selectFruit" component={SelectFruit}/>
    <Route path="FruitSelectionPage" component={FruitSelectionPage}/>
    <Route path="CitySelectionPage" component={CitySelectionPage}/>
    <Route path="selectQTWay" component={SelectQTWay}/>
    <Route path="placeQT" component={PlaceQT}/>
    <Route path="sendQT" component={SendQT}/>
    <Route path="messageCenter" component={MessageCenter}/>
    <Route path="pPlanList" component={PPlanList}/>
    <Route path="pPlanDetail/:id" component={PPlanDetail}/>
    <Route path="offer" component={Offer}/>

    <Route path="order" component={Order}/>
    <Route path="cgOrderDetail/:id" component={CgOrderDetail}/>
    <Route path="dfhOrderDetail/:id" component={DfhOrderDetail}/>
    <Route path="dhOrderDetail/:id" component={DhOrderDetail}/>
    <Route path="fh" component={Fh}/>
    <Route path="dhyy" component={Dhyy}/>

    <Route path="qualityStandard" component={QualityStandard}/>
    <Route path="joinTeam" component={JoinTeam}/>
    <Route path="systemSet" component={SystemSet}/>
    <Route path="quoteList" component={QuoteList}/>
    <Route path="quoteDetail/:id" component={QuoteDetail}/>
    <Route path="account" component={Account}/>
    <Route path="changeInfo/:id" component={ChangeInfo}/>
    {
      /*<Route path="about" component={About}/>
       <Route path="picLoad" component={picLoad}/>
       <Route path="concat" component={Concat}/>
       <Route path="list/:id" component={List}/>*/
    }
  </Router>
);
// Render the main component into the dom
ReactDOM.render(router, document.getElementById('app'));
